#include <iostream>

#include <math.h>

int main()
{
  float f;

  *reinterpret_cast<int*>(&f) = 0x80000000;

  int exp;

  frexpf(f, &exp);

  std::cout << f << " " << exp << std::endl;

  *reinterpret_cast<int*>(&f) = 0x08000000;

  frexpf(f, &exp);

  std::cout << f << " " << exp << std::endl;

  return 0;
}
